package com.ai;

import cn.hutool.db.Db;
import cn.hutool.db.Entity;
import cn.hutool.extra.mail.MailUtil;
import org.testng.annotations.Test;

import java.sql.SQLException;
import java.util.Arrays;

import java.util.List;
import java.util.Optional;

public class ITestApplicationTests7 {

	@Test
	public void testContext() throws SQLException {
		List<Staff> staffs = Arrays.asList(
				new Staff(1, "Alice", "New York", 25),
				new Staff(2, "Bob", "Chicago", 30),
				new Staff(3, "Charlie", "New York", 22),
				new Staff(4, "David", "Chicago", 35),
				new Staff(5, "Eve", "Los Angeles", 28)
		);
		Staff staff = new Staff();
		System.out.println(Optional.ofNullable(staff).orElseThrow(() -> new RuntimeException("为null")));



	}


}





